<?php
require_once('Produit.class.php');
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Cahier
 *
 * @author nlaurent
 */
class Cahier extends Produit{
   private $dimension;
   private $lignage;
   
   function __construct($reference, $prix,$dimension, $lignage) {
       parent::__construct($reference, $prix);
       $this->dimension = $dimension;
       $this->lignage = $lignage;
   }
   public function getDimension() {
       return $this->dimension;
   }

   public function setDimension($dimension) {
       $this->dimension = $dimension;
   }

   public function getLignage() {
       return $this->lignage;
   }

   public function setLignage($lignage) {
       $this->lignage = $lignage;
   }
   
   public function __toString() {
        parent::__toString();
        return "la dimension est : ".$this->dimension." et le lignage : ".$this->lignage;
   }

   public function getClasse() {
       return "cahier";
   }
   
   



}

?>
